<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sb" uri="/struts-bootstrap-tags"%>
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles"%>
<%@taglib prefix="display" uri="http://displaytag.sf.net"%>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c"%>
<jsp:include page="/loginCheck.jsp" />
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript" src="js/defendattack.js"></script>
<link rel="StyleSheet" href="css/jquery.qtip.min.css" type="text/css">
<link rel="StyleSheet" href="css/bootstrap.min.css" type="text/css">
<link rel="StyleSheet" href="css/style.css" type="text/css">
<script type="text/javascript" src="js/jquery-2.1.0.min.js"></script>
<script type="text/javascript" src="js/jquery.qtip.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/util.js"></script>
<script type="text/javascript" src="js/checkform.js"></script>
<script type="text/javascript" src="js/script.js"></script>
<title>新規入力：品名検索</title>
<!-- Le HTML5 shim, for IE6-8 support of HTML elements -->
<!--[if lt IE 9]>
    <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
<sb:head />
</head>
<body>
	<div class="wrapper">
		<tiles:insertTemplate template="/template/header.jsp"></tiles:insertTemplate>
		<div class="panel panel-success">
			<div class="panel-heading">
				<img src="img/newx.png" /><strong>新規入力：品名検索</strong> <img alt=""
					src="img/help.png" class="help-icon">
			</div>
			<div class="panel-body">
				<s:actionerror theme="bootstrap" />
				<s:actionmessage theme="bootstrap" />
				<s:fielderror theme="bootstrap" />
				<div class="container box-search">
					<div class="row">
						<div class="col-xs-12 col-md-8">
							<label for="exampleInputEmail2"><strong>製品名の一部を入力してください</strong></label>
						</div>
					</div>
					<div class="row">
						<form action="search.action" method="post" role="form"
							enctype="multipart/form-data">
							<div class="col-xs-12 col-md-8">
								<input type="text" class="form-control" name="productname"
									placeholder="製品名の一部を入力してください" style="height: 30px;">
							</div>
							<div class="col-xs-6 col-md-4">
								<button type="submit" class="btn btn-warning">検索</button>
							</div>
						</form>
					</div>
				</div>
			</div>
		</div>
		<div class="table-responsive">
			<display:table id="txt" name="rtList" pagesize="15" requestURI=""
				class="table table-striped table-hover table-bordered">
				<display:column title="No.">${txt_rowNum}
				</display:column>
				<display:column property="code" title="品名コード" sortable="true"
					sortName="code">
				</display:column>
				<display:column property="name" title="品名" sortable="true"
					sortName="name">
				</display:column>
				<display:column property="type" title="容量"></display:column>
				<display:column title="操作">
					<form action="booking.action" method="post" role="form"
						class="submit-form" enctype="multipart/form-data">
						<input id="code_${txt.code}" type="hidden" name="productcode"
							value="${txt.code}"> <input type="hidden"
							name="productname" value="${txt.name}"> <input
							type="hidden" name="productcapacity" value="${txt.type}">
						<input type="hidden" name="actionType" value="SEARCH_REGISTER" />
						<input type="hidden" name="productgetcd" value="${txt.getCD}">
						<input type="submit" name="submit" value="新規登録"
							class="btn btn-default">
					</form>
				</display:column>
			</display:table>

		</div>
		<tiles:insertTemplate template="/template/footer.jsp"></tiles:insertTemplate>
	</div>
</body>
</html>